import request from "@/utils/request";

// 发票未開票的接口
export function getuninvoicelist(params) {
  return request({
    url: `/financial/deposit/list`,
    method: "get",
    params
  });
}
// 发票已開票的接口
export function getinvoicelist(params) {
  return request({
    url: `/financial/invoice/list`,
    method: "get",
    params
  });
}

// 发票纪录ID对应信息接口
export function getinvoicegetInfolist(params) {
  return request({
    url: `/financial/invoice/getInfo`,
    method: "get",
    params
  });
}
// 发票纪录添加应信息接口
export function addtinvoicegetInfolist(data) {
  return request({
    url: `/financial/invoice/add`,
    method: "post",
    data
  });
}
// 查询发票抬头/financial/invoiceTitle/list
export function invoiceTitlelist(params) {
  return request({
    url: `/financial/invoiceTitle/list`,
    method: "get",
    params
  });
}
// 新增发票抬头/financial/invoiceTitle/add
export function addInvoiceTitle(data) {
  return request({
    url: `/financial/invoiceTitle/add`,
    method: "post",
    data
  });
}
//删除发票抬头 /financial/invoiceTitle/remove/
export function removeInvoiceTitle(id) {
  return request({
    url: `/financial/invoiceTitle/remove/${id}`,
    method: "DELETE"
  });
}
//编辑 /financial/invoiceTitle/edit
export function editInvoiceTitle(data) {
  return request({
    url: `/financial/invoiceTitle/edit`,
    method: "put",
    data
  });
}
